package com.myapp.struts.menu;

import java.util.ArrayList;

public class Evening extends MenuGenerate {

    private ArrayList<FoodItems> foodItemCountrytype = new ArrayList<FoodItems>();

    public ArrayList<FoodItems> GenerateMenuAsType(ArrayList<FoodItems> foodItem) {
        for (FoodItems foodItems : foodItem) {
            if (foodItems.getCategory().equals(Constants.DESSERT) || foodItems.getCategory().equals(Constants.DINNER_FOOD) || foodItems.getCategory().equals(Constants.APPETIZER) || foodItems.getCategory().equals(Constants.SIDE_DISH)) {
             FoodItems foodItemObj = new FoodItems();
                foodItemObj.setCategory(foodItems.getCategory());
                foodItemObj.setId(foodItems.getId());
                foodItemObj.setCountry(foodItems.getCountry());
                foodItemObj.setName(foodItems.getName());
                foodItemObj.setDescription(foodItems.getDescription());
                foodItemObj.setPrice(foodItems.getPrice());
                foodItemCountrytype.add(foodItemObj);
            }
        }
        return foodItemCountrytype;

    }
}
